package com.tangchao.client.sdh.view.role
{
	import com.tangchao.client.sdh.vo.Player;
	import com.tangchao.client.sdh.vo.RoleInfoVo;
	
	import flash.display.MovieClip;
	import flash.text.TextField;

	public class RoleShow extends MovieClip
	{
		private var _name:TextField;
		private var _wuXing:TextField;
		private var _exp:TextField;
		public function RoleShow()
		{
			init();
			this.visible=false;
		}
		
		private function init()
		{
			_name=getChildByName("tfName") as TextField;
			_wuXing=getChildByName("tfWuXing") as TextField;
			_exp=getChildByName("tfExp") as TextField;
		}
		
		public function create(v:Player)
		{
			if(v)
			{
				_name.text  =v.user.getName();
				_wuXing.text=v.user.getBalance().toString();;
				_exp.text   =v.user.getExperience().toString();
			}
		}
	}
}